package com.youlv.yl.dao;

import com.youlv.yl.dto.OrderDetailDto;
import com.youlv.yl.entity.hotel.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 订单表  Mapper 接口
 * </p>
 *
 * @author fenghe
 * @since 2022-01-19
 */
@Repository
public interface OrderDao extends BaseMapper<Order> {

    @Update("update t_order set flag = #{flag} where id = #{id}")
    int updateFlag(@Param("id")Long id, @Param("flag") Integer flag);

    OrderDetailDto selectMy(Long id);
}
